import { dateFormat } from '@/util/date';
export const startDate = dateFormat(new Date(), 'yyyy-MM-') + '01';
let now = new Date();
now.setDate(now.getDate() + 1);
export const endDate = dateFormat(now, 'yyyy-MM-dd');
export const startDate2 = '';
export const endDate2 = '';
export const tableOption = {
  border: true,
  index: true,
  indexLabel: '序号',
  stripe: true,
  menuAlign: 'center',
  align: 'center',
  dialogWidth: '70%',
  editBtn: false,
  delBtn: false,
  selection: true,
  searchMenuSpan: 6,
  emptyBtn:false,
  // selectable: (row, index)=>{
  //   return row.checkStatus == '0'  
  // },
  column: [{
    label: '标识',
    prop: 'id',
    hide: true,
    display: false,
  }, {
    label: '线路名称',
    prop: 'stationLine',
    type: 'select',
    search: true,
    props: {
      label: 'name',
      value: 'code'
    },
    cascaderItem: ["stationCode"],
    dicUrl: "/support/swparamline/dict",
    rules: [{
      required: true,
      message: '请选择线路名称',
      trigger: 'blur'
    }],
    display: false,
  }, {
    label: '站点名称',
    prop: 'stationCode',
    type: 'select',
	search: true,
    dicFlag: false,
    props: {
      label: 'name',
      value: 'code'
    },
    dicUrl: "/support/swparamstation/dict/{{key}}",
    rules: [{
      required: true,
      message: '请选择站点名称',
      trigger: 'blur'
    }],
    display: false,
  }, {
    label: '票种',
    prop: 'ticketType',
    type: 'select',
    dicUrl: '/support/swpmticketcardtype/dict',
    search: true,
    props: {
      label: 'mainName',
      value: 'mainEnName'
    },
    cascaderItem: ["ticketName"],
    rules: [{
      required: true,
      message: '请选择票种',
      trigger: 'blur'
    }],
    display: false,
  }, {
    label: '车票名称',
    prop: 'ticketName',
    search: true,
    type: 'select',
    dicFlag: false,
    props: {
      label: 'subName',
      value: 'subEnName'
    },
    dicUrl: '/support/swpmticketcardtypeparam/dictAll/{{key}}',
    rules: [{
      required: true,
      message: '请选择车票名称',
      trigger: 'blur'
    }],
    display: false,
  }, {
    label: '数据来源',
    prop: 'dataSource',
    dicUrl: '/admin/dict/type/invalid_ticket_data_source',
    display: false
  }, {
    label: '原卡号',
    prop: 'oldCardOrder',
    search:true,
    rules: [{
      required: true,
      message: '原卡号',
      trigger: 'blur'
    }],
    display: false,
  }, {
    label: '申请时间',
    prop: 'applyTime',
    type: 'datetime',
    search: true,
    searchValue: [startDate, endDate],
    searchRange: true,
    searchSpan: 12,
    format: 'yyyy-MM-dd',
    valueFormat: 'yyyy-MM-dd',
    rules: [{
      required: true,
      message: '请输入申请时间',
      trigger: 'blur'
    }],
    display: false,
  }, {
    label: '新卡号',
    search:true,
    prop: 'newCardOrder',
    // rules: [{
    //   required: true,
    //   message: '新卡号',
    //   trigger: 'blur'
    // }],
    display: false,
  }, {
    label: '领用时间',
    prop: 'receiveTime',
    search: true,
    //searchRange: true,
    searchslot:true,
    searchSpan: 12,
    type: 'datetime',
    format: 'yyyy-MM-dd',
    valueFormat: 'yyyy-MM-dd',
    // rules: [{
    //   required: true,
    //   message: '请输入领用时间',
    //   trigger: 'blur'
    // }],
    display: false,
  }, {
    label: '领用人',
    prop: 'receiver',
    search: true,
    type: 'select',
    params: {
      userCodeKey: 'receiverId'
    },
    component: 'user-select',
    rules: [{
      message: '请选择领用人信息',
      trigger: 'blur'
    }],
    display: false,
  }, {
    width: 150,
    label: '领用人工号',
    prop: 'receiverId',
    rules: [{
      message: '领用人工号',
      trigger: 'blur'
    }],
    display: false,
  }, {
    label: '班次',
    prop: 'classNumber',
    type: 'select',
    dicUrl: '/admin/dict/type/stm_conductor_shift',
    rules: [{
      required: true,
      message: '请选择班次'
    }],
    display: false
  },{
    label: '发卡人',
    prop: 'cardIssuer',
    type: 'select',
    params: {
      userCodeKey: 'cardIssuerId'
    },
    component: 'user-select',
    rules: [{
      message: '请选择发卡人信息',
      trigger: 'blur'
    }],
    display: false,
  }, {
    width: 100,
    label: '发卡人工号',
    prop: 'cardIssuerId',
    rules: [{
      message: '发卡人工号',
      trigger: 'blur'
    }],
    display: false,
  }, {
    width: 120,
    label: '新发票卡金额',
    prop: 'ticketPrice',
    type: 'number',
    precision: 2,
    display: false,
    hide: true
  }, {
    width: 120,
    label: '是否人为损坏',
    prop: 'isDamage',
    search: true,
    searchLabelWidth: 100,
    type: 'select',
    dicUrl: '/admin/dict/type/ticket_damage',
    rules: [{
      message: '请选择是否人为损坏',
      trigger: 'blur'
    }],
    display: false,
  }, {
    width: 140,
    label: '新发票卡有效期',
    prop: 'activeTime',
    rules: [{
      message: '新发票卡有效期',
      trigger: 'blur'
    }],
    display: false,
  }, {
    width: 120,
    label: '新发票卡次数',
    prop: 'ticketTimes',
    type: 'number',
    rules: [{
      message: '新发票卡次数',
      trigger: 'blur'
    }],
    display: false,
  }, {
    width: 120,
    label: '票卡剩余次数',
    prop: 'remainTimes',
    type: 'number',
    rules: [{
      message: '票卡剩余次数',
      trigger: 'blur'
    }],
    display: false,
  }, {
    width: 120,
    label: '预估次数',
    prop: 'estimatedNumber',
    type: 'number',
    rules: [{
      message: '预估次数',
      trigger: 'blur'
    }],
    display: false,
  }, {
    width: 120,
    label: '票卡剩余金额',
    type: 'number',
    prop: 'ticketPriceRemain',
	  precision: 2,
    rules: [{
      message: '票卡剩余金额',
      trigger: 'blur'
    }],
    display: false,
    hide: true
  }, {
    width: 120,
    label: '票卡查询状态',
    prop: 'ticketSearchStatus',
    type: 'input',
    rules: [{
      message: '票卡查询状态',
      trigger: 'blur'
    }],
    display: false,
  }, {
    label: '审核状态',
    prop: 'checkStatus',
    search: true,
    searchValue: '0',
    type: 'select',
    //dicUrl: '/admin/dict/type/sw_st_invalidticket_status',
    dicUrl: '/admin/dict/type/check_status',
    addDisplay: false,
    editDisplay: false,
    rules: [{
      message: '请选择审核状态',
      trigger: 'blur'
    }],
    display: false,
  },{
    label: '通知状态',
    prop: 'confirmStatus',
    search: true,
    type: 'select',
    dicUrl: '/admin/dict/type/invalidcompleteticket_confirm_status',
    addDisplay: false,
    editDisplay: false,
    display: false,
  },{
    label: '下发状态',
    prop: 'sendStatus',
    hide: true,
    type: 'select',
    dicUrl: '/admin/dict/type/sw_st_invalidticket_status_qf',
    addDisplay: false,
    editDisplay: false,
  },{
    label: '入库状态',
    prop: 'inputStatus',
    type: 'select',
    dicData:[{
      label: '否',
      value: '0'
    },{
      label: '是',
      value: '1'
    }],
    display: false
  },{
    label: '出库状态',
    prop: 'outputStatus',
    type: 'select',
    dicData:[{
      label: '否',
      value: '0'
    },{
      label: '是',
      value: '1'
    }],
    display: false
  }, {
    label: '备注',
    prop: 'remark',
    type: 'textarea',
    maxRows: 6,
    minRows: 4,
    span: 24,
    display: false,
  }, {
    label: '创建人ID',
    prop: 'creatorId',
    hide: true,
    display: false,
  }, {
    width: 100,
    label: '创建人名称',
    prop: 'creatorName',
    hide: true,
    display: false,
  }, {
    label: '创建时间',
    prop: 'createtime',
    hide: true,
    display: false,
  }],
  group: [
    {
      label: '',
      column: [{
        label: '标识',
        prop: 'id',
        hide: true,
        display:false,
      }, {
        label: '线路名称',
        prop: 'stationLine',
        type: 'select',
        props: {
          label: 'name',
          value: 'code'
        },
        cascaderItem: ["stationCode"],
        dicUrl: "/support/swparamline/dict",
        rules: [{
          required: true,
          message: '请选择线路名称',
          trigger: 'blur'
        }]
      }, {
        label: '站点名称',
        prop: 'stationCode',
        type: 'select',
        dicFlag: false,
        props: {
          label: 'name',
          value: 'code'
        },
        dicUrl: "/support/swparamstation/dict/{{key}}",
        rules: [{
          required: true,
          message: '请选择站点名称',
          trigger: 'blur'
        }]
      }, {
        label: '票种',
        prop: 'ticketType',
        type: 'select',
        dicUrl: '/support/swpmticketcardtype/dict',
        props: {
          label: 'mainName',
          value: 'mainEnName'
        },
        cascaderItem: ["ticketName"],
        rules: [{
          required: true,
          message: '请选择票种',
          trigger: 'blur'
        }],
      }, {
        label: '车票名称',
        prop: 'ticketName',
        type: 'select',
        props: {
          label: 'subName',
          value: 'subEnName'
        },
        dicUrl: '/support/swpmticketcardtypeparam/dictAll/{{key}}',
        rules: [{
          required: true,
          message: '请选择车票名称',
          trigger: 'blur'
        }],
      }, {
        label: '数据来源',
        prop: 'dataSource',
        dicUrl: '/admin/dict/type/invalid_ticket_data_source',
        display: false
      }, {
        label: '原卡号',
        prop: 'oldCardOrder',
        rules: [{
          required: true,
          message: '原卡号',
          trigger: 'blur'
        }]
      }, {
        label: '申请时间',
        prop: 'applyTime',
        type: 'datetime',
        format: 'yyyy-MM-dd',
        valueFormat: 'yyyy-MM-dd',
        rules: [{
          required: true,
          message: '请输入申请时间',
          trigger: 'blur'
        }],
        //disabled: true,
      }, 
      // {
      //   label: '新卡号',
      //   prop: 'newCardOrder',
      //   // rules: [{
      //   //   required: true,
      //   //   message: '新卡号',
      //   //   trigger: 'blur'
      //   // }]
      // }, {
      //   label: '领用时间',
      //   prop: 'receiveTime',
      //   type: 'datetime',
      //   format: 'yyyy-MM-dd',
      //   valueFormat: 'yyyy-MM-dd',
      //   // rules: [{
      //   //   required: true,
      //   //   message: '请输入领用时间',
      //   //   trigger: 'blur'
      //   // }]
      // }, {
      //   label: '领用人',
      //   prop: 'receiver',
      //   type: 'select',
      //   params: {
      //     userCodeKey: 'receiverId'
      //   },
      //   component: 'user-select',
      //   rules: [{
      //     message: '请选择领用人信息',
      //     trigger: 'blur'
      //   }]
      // }, {
      //   label: '领用人工号',
      //   prop: 'receiverId',
      //   rules: [{
      //     message: '领用人工号',
      //     trigger: 'blur'
      //   }],
      //   disabled:true
      // }, 
      {
        label: '发卡人',
        prop: 'cardIssuer',
        type: 'select',
        params: {
          userCodeKey: 'cardIssuerId'
        },
        component: 'user-select',
        rules: [{
          message: '请选择发卡人信息',
          trigger: 'blur'
        }],
        disabled:true
      }, {
        width: 100,
        label: '发卡人工号',
        prop: 'cardIssuerId',
        rules: [{
          message: '发卡人工号',
          trigger: 'blur'
        }],
        disabled:true
      }, {
        label: '班次',
        prop: 'classNumber',
        type: 'select',
        dicUrl: '/admin/dict/type/stm_conductor_shift',
        rules: [{
          required: true,
          message: '请选择班次'
        }]
      },{
        width: 120,
        label: '新发票卡金额',
        prop: 'ticketPrice',
        type: 'number',
        precision: 2,
        labelWidth: 100,
        display:false
      }, {
        width: 120,
        label: '是否人为损坏',
        prop: 'isDamage',
        type: 'select',
        dicUrl: '/admin/dict/type/ticket_damage',
        rules: [{
          message: '请选择是否人为损坏',
          trigger: 'blur'
        }],
        labelWidth: 100,
      }, {
        width: 140,
        label: '新发票卡有效期',
        prop: 'activeTime',
        rules: [{
          message: '新发票卡有效期',
          trigger: 'blur'
        }],
        labelWidth: 120,
      }, {
        width: 120,
        label: '新发票卡次数',
        prop: 'ticketTimes',
        type: 'number',
        // rules: [{
        //   message: '新发票卡次数',
        //   trigger: 'blur'
        // }],
        labelWidth: 100,
      },
      ]
    },
    {
      label: '清分回馈信息',
      column: [{
        width: 120,
        label: '票卡剩余次数',
        prop: 'remainTimes',
        type: 'number',
        // rules: [{
        //   message: '票卡剩余次数',
        //   trigger: 'blur'
        // }],
        labelWidth: 110,
        //disabled: true,
      }, {
        width: 120,
        label: '票卡剩余金额',
        prop: 'ticketPriceRemain',
        type: 'number',
		    precision: 2,
        // rules: [{
        //   message: '票卡剩余金额',
        //   trigger: 'blur'
        // }],
        labelWidth: 110,
        //disabled: true,
        display:false
      }, {
        width: 120,
        label: '票卡查询状态',
        prop: 'ticketSearchStatus',
        // rules: [{
        //   message: '票卡查询状态',
        //   trigger: 'blur'
        // }],
        labelWidth: 110,
        //disabled: true,
      }, {
        label: '备注',
        prop: 'remark',
        type: 'textarea',
        maxRows: 6,
        minRows: 4,
        span: 24,
        //disabled: true,
      }],
    }
  ]
};
export const tableOptionView = {
  border: true,
  index: true,
  indexLabel: '序号',
  stripe: true,
  menuAlign: 'center',
  align: 'center',
  dialogWidth: '70%',
  editBtn: false,
  selection: true,
  column: [{
    label: '标识',
    prop: 'id',
    hide: true,
    display: false,
  }, {
    label: '线路名称',
    prop: 'stationLine',
    type: 'select',
    props: {
      label: 'name',
      value: 'code'
    },
    cascaderItem: ["stationCode"],
    dicUrl: "/support/swparamline/dict",
    rules: [{
      required: true,
      message: '请选择线路名称',
      trigger: 'blur'
    }],
    display: false,
  }, {
    label: '站点名称',
    prop: 'stationCode',
    type: 'select',
    dicFlag: false,
    props: {
      label: 'name',
      value: 'code'
    },
    dicUrl: "/support/swparamstation/dict/{{key}}",
    rules: [{
      required: true,
      message: '请选择站点名称',
      trigger: 'blur'
    }],
    display: false,
  }, {
    label: '票种',
    prop: 'ticketType',
    type: 'select',
    dicUrl: '/support/swpmticketcardtype/dict',
    search: true,
    props: {
      label: 'mainName',
      value: 'mainEnName'
    },
    cascaderItem: ["ticketName"],
    rules: [{
      required: true,
      message: '请选择票种',
      trigger: 'blur'
    }],
    display: false,
  }, {
    label: '车票名称',
    prop: 'ticketName',
    search: true,
    type: 'select',
    dicFlag: false,
    props: {
      label: 'subName',
      value: 'subEnName'
    },
    dicUrl: '/support/swpmticketcardtypeparam/dictAll/{{key}}',
    rules: [{
      required: true,
      message: '请选择车票名称',
      trigger: 'blur'
    }],
    display: false,
  }, {
    label: '数据来源',
    prop: 'dataSource',
    dicUrl: '/admin/dict/type/invalid_ticket_data_source',
    display: false
  }, {
    label: '原卡号',
    prop: 'oldCardOrder',
    rules: [{
      required: true,
      message: '原卡号',
      trigger: 'blur'
    }],
    display: false,
  }, {
    label: '申请时间',
    prop: 'applyTime',
    type: 'datetime',
    search: true,
    searchRange: true,
    searchSpan: 12,
    format: 'yyyy-MM-dd',
    valueFormat: 'yyyy-MM-dd',
    rules: [{
      required: true,
      message: '请输入申请时间',
      trigger: 'blur'
    }],
    display: false,
  }, 
  // {
  //   label: '新卡号',
  //   prop: 'newCardOrder',
  //   // rules: [{
  //   //   required: true,
  //   //   message: '新卡号',
  //   //   trigger: 'blur'
  //   // }],
  //   display: false,
  // }, {
  //   label: '领用时间',
  //   prop: 'receiveTime',
  //   search: true,
  //   searchRange: true,
  //   searchSpan: 12,
  //   type: 'datetime',
  //   format: 'yyyy-MM-dd',
  //   valueFormat: 'yyyy-MM-dd',
  //   // rules: [{
  //   //   required: true,
  //   //   message: '请输入领用时间',
  //   //   trigger: 'blur'
  //   // }],
  //   display: false,
  // }, {
  //   label: '领用人',
  //   prop: 'receiver',
  //   search: true,
  //   type: 'select',
  //   params: {
  //     userCodeKey: 'receiverId'
  //   },
  //   component: 'user-select',
  //   rules: [{
  //     message: '请选择领用人信息',
  //     trigger: 'blur'
  //   }],
  //   display: false,
  // }, {
  //   label: '领用人工号',
  //   prop: 'receiverId',
  //   rules: [{
  //     message: '领用人工号',
  //     trigger: 'blur'
  //   }],
  //   display: false,
  // }, 
  {
    label: '发卡人',
    prop: 'cardIssuer',
    type: 'select',
    params: {
      userCodeKey: 'cardIssuerId'
    },
    component: 'user-select',
    rules: [{
      message: '请选择发卡人信息',
      trigger: 'blur'
    }],
    display: false,
  }, {
    width: 120,
    label: '发卡人工号',
    prop: 'cardIssuerId',
    rules: [{
      message: '发卡人工号',
      trigger: 'blur'
    }],
    display: false,
  }, {
    width: 120,
    label: '新发票卡金额',
    prop: 'ticketPrice',
    type: 'number',
    precision: 2,
    display: false,
  }, {
    width: 120,
    label: '是否人为损坏',
    prop: 'isDamage',
    search: true,
    searchLabelWidth: 100,
    type: 'select',
    dicUrl: '/admin/dict/type/ticket_damage',
    rules: [{
      message: '请选择是否人为损坏',
      trigger: 'blur'
    }],
    display: false,
  }, {
    width: 140,
    label: '新发票卡有效期',
    prop: 'activeTime',
    rules: [{
      message: '新发票卡有效期',
      trigger: 'blur'
    }],
    display: false,
  }, {
    width: 120,
    label: '新发票卡次数',
    prop: 'ticketTimes',
    type: 'number',
    rules: [{
      message: '新发票卡次数',
      trigger: 'blur'
    }],
    display: false,
  }, {
    width: 120,
    label: '票卡剩余次数',
    prop: 'remainTimes',
    type: 'number',
    rules: [{
      message: '票卡剩余次数',
      trigger: 'blur'
    }],
    display: false,
  }, {
    width: 120,
    label: '票卡剩余金额',
    type: 'number',
    prop: 'ticketPriceRemain',
	precision: 2,
    rules: [{
      message: '票卡剩余次数',
      trigger: 'blur'
    }],
    display: false,
  }, {
    width: 120,
    label: '票卡查询状态',
    prop: 'ticketSearchStatus',
    type: 'input',
    rules: [{
      message: '票卡查询状态',
      trigger: 'blur'
    }],
    display: false,
  }, {
    label: '审核状态',
    prop: 'checkStatus',
    search: true,
    type: 'select',
    dicUrl: '/admin/dict/type/audit_status',
    addDisplay: false,
    editDisplay: false,
    rules: [{
      message: '请选择审核状态',
      trigger: 'blur'
    }],
    display: false,
  }, {
    label: '备注',
    prop: 'remark',
    type: 'textarea',
    maxRows: 6,
    minRows: 4,
    span: 24,
    display: false,
  }, {
    label: '创建人ID',
    prop: 'creatorId',
    hide: true,
    display: false,
  }, {
    width: 100,
    label: '创建人名称',
    prop: 'creatorName',
    hide: true,
    display: false,
  }, {
    label: '创建时间',
    prop: 'createtime',
    hide: true,
    display: false,
  }],
  group: [
    {
      label: '',
      column: [{
        label: '标识',
        prop: 'id',
        hide: true,
        display:false,
      }, {
        label: '线路名称',
        prop: 'stationLine',
        type: 'select',
        props: {
          label: 'name',
          value: 'code'
        },
        cascaderItem: ["stationCode"],
        dicUrl: "/support/swparamline/dict",
        rules: [{
          required: true,
          message: '请选择线路名称',
          trigger: 'blur'
        }]
      }, {
        label: '站点名称',
        prop: 'stationCode',
        type: 'select',
        dicFlag: false,
        props: {
          label: 'name',
          value: 'code'
        },
        dicUrl: "/support/swparamstation/dict/{{key}}",
        rules: [{
          required: true,
          message: '请选择站点名称',
          trigger: 'blur'
        }]
      }, {
        label: '票种',
        prop: 'ticketType',
        type: 'select',
        dicUrl: '/support/swpmticketcardtype/dict',
        props: {
          label: 'mainName',
          value: 'mainEnName'
        },
        cascaderItem: ["ticketName"],
        rules: [{
          required: true,
          message: '请选择票种',
          trigger: 'blur'
        }],
      }, {
        label: '车票名称',
        prop: 'ticketName',
        type: 'select',
        props: {
          label: 'subName',
          value: 'subEnName'
        },
        dicUrl: '/support/swpmticketcardtypeparam/dictAll/{{key}}',
        rules: [{
          required: true,
          message: '请选择车票名称',
          trigger: 'blur'
        }],
      }, {
        label: '数据来源',
        prop: 'dataSource',
        dicUrl: '/admin/dict/type/invalid_ticket_data_source',
        display: false
      }, {
        label: '原卡号',
        prop: 'oldCardOrder',
        rules: [{
          required: true,
          message: '原卡号',
          trigger: 'blur'
        }]
      }, {
        label: '申请时间',
        prop: 'applyTime',
        type: 'datetime',
        format: 'yyyy-MM-dd',
        valueFormat: 'yyyy-MM-dd',
        rules: [{
          required: true,
          message: '请输入申请时间',
          trigger: 'blur'
        }]
      }, 
      // {
      //   label: '新卡号',
      //   prop: 'newCardOrder',
      //   // rules: [{
      //   //   required: true,
      //   //   message: '新卡号',
      //   //   trigger: 'blur'
      //   // }]
      // }, {
      //   label: '领用时间',
      //   prop: 'receiveTime',
      //   type: 'datetime',
      //   format: 'yyyy-MM-dd',
      //   valueFormat: 'yyyy-MM-dd',
      //   // rules: [{
      //   //   required: true,
      //   //   message: '请输入领用时间',
      //   //   trigger: 'blur'
      //   // }]
      // }, {
      //   label: '领用人',
      //   prop: 'receiver',
      //   type: 'select',
      //   params: {
      //     userCodeKey: 'receiverId'
      //   },
      //   component: 'user-select',
      //   rules: [{
      //     message: '请选择领用人信息',
      //     trigger: 'blur'
      //   }]
      // }, {
      //   label: '领用人工号',
      //   prop: 'receiverId',
      //   rules: [{
      //     message: '领用人工号',
      //     trigger: 'blur'
      //   }]
      // }, 
      {
        label: '发卡人',
        prop: 'cardIssuer',
        type: 'select',
        params: {
          userCodeKey: 'cardIssuerId'
        },
        component: 'user-select',
        rules: [{
          message: '请选择发卡人信息',
          trigger: 'blur'
        }]
      }, {
        width: 100,
        label: '发卡人工号',
        prop: 'cardIssuerId',
        rules: [{
          message: '发卡人工号',
          trigger: 'blur'
        }]
      }, {
        width: 100,
        label: '新发票卡金额',
        prop: 'ticketPrice',
        type: 'number',
        precision: 2,
        labelWidth: 100,
        display: false,
      }, {
        width: 120,
        label: '是否人为损坏',
        prop: 'isDamage',
        type: 'select',
        dicUrl: '/admin/dict/type/ticket_damage',
        rules: [{
          message: '请选择是否人为损坏',
          trigger: 'blur'
        }],
        labelWidth: 100,
      }, {
        width: 140,
        label: '新发票卡有效期',
        prop: 'activeTime',
        rules: [{
          message: '新发票卡有效期',
          trigger: 'blur'
        }],
        labelWidth: 120,
      }, {
        width: 120,
        label: '新发票卡次数',
        prop: 'ticketTimes',
        type: 'number',
        rules: [{
          message: '新发票卡次数',
          trigger: 'blur'
        }],
        labelWidth: 100,
      },
      ]
    },
    {
      label: '清分回馈信息',
      column: [{
        width: 120,
        label: '票卡剩余次数',
        prop: 'remainTimes',
        type: 'number',
        rules: [{
          message: '票卡剩余次数',
          trigger: 'blur'
        }],
        labelWidth: 110,
        disabled: true,
      }, {
        width: 120,
        label: '票卡剩余金额',
        prop: 'ticketPriceRemain',
        type: 'number',
		    precision: 2,
        rules: [{
          message: '票卡剩余金额',
          trigger: 'blur'
        }],
        labelWidth: 110,
        disabled: true,
        display: false,
      }, {
        width: 120,
        label: '票卡查询状态',
        prop: 'ticketSearchStatus',
        rules: [{
          message: '票卡查询状态',
          trigger: 'blur'
        }],
        labelWidth: 110,
        disabled: true,
      }, {
        label: '备注',
        prop: 'remark',
        type: 'textarea',
        maxRows: 6,
        minRows: 4,
        span: 24,
        disabled: true,
      }],
    }
  ]
};

export const tableOptionStationCompleteInfo = {
  border: true,
  index: true,
  indexLabel: '序号',
  stripe: true,
  menuAlign: 'center',
  align: 'center',
  dialogWidth: '70%',
  searchLabelWidth: 100,
  submitBtn: false,
  editBtn: false,
  emptyBtn: false,
  menuBtn: false,
  column: [{
    label: '标识',
    prop: 'id',
    hide: true,
    display: false,
  }, {
    label: '新卡号',
    prop: 'newCardOrder',
    rules: [{
      required: true,
      message: '请输入新卡号',
      trigger: 'blur'
    }],
  }, {
    label: '领用时间',
    prop: 'receiveTime',
    type: 'datetime',
    format: 'yyyy-MM-dd',
    valueFormat: 'yyyy-MM-dd',
    rules: [{
      required: true,
      message: '请输入领用时间',
      trigger: 'blur'
    }],
  }, {
    label: '领用人',
    prop: 'receiver',
    type: 'select',
    params: {
      userCodeKey: 'receiverId'
    },
    component: 'user-select',
    rules: [{
      required: true,
      message: '请选择领用人',
      trigger: 'blur'
    }]
  }, {
    width: 100,
    label: '领用人工号',
    prop: 'receiverId',
    rules: [{
      required: true,
      message: '领用人工号',
      trigger: 'blur'
    }],
    disabled: true
  }]
}
export const tableOptionStationEdit = {
  border: true,
  index: true,
  indexLabel: '序号',
  stripe: true,
  menuAlign: 'center',
  align: 'center',
  dialogWidth: '70%',
  searchLabelWidth: 100,
  editBtn: false,
  column: [{
    label: '标识',
    prop: 'id',
    hide: true,
    display: false,
  }, {
    label: '线路名称',
    prop: 'stationLine',
    type: 'select',
    props: {
      label: 'name',
      value: 'code'
    },
    cascaderItem: ["stationCode"],
    dicUrl: "/support/swparamline/dict",
    rules: [{
      required: true,
      message: '请选择线路名称',
      trigger: 'blur'
    }],
    display: false,
  }, {
    label: '站点名称',
    prop: 'stationCode',
    type: 'select',
    dicFlag: false,
    props: {
      label: 'name',
      value: 'code'
    },
    dicUrl: "/support/swparamstation/dict/{{key}}",
    rules: [{
      required: true,
      message: '请选择站点名称',
      trigger: 'blur'
    }],
    display: false,
  }, {
    label: '票种',
    prop: 'ticketType',
    type: 'select',
    dicUrl: '/support/swpmticketcardtype/dict',
    search: true,
    props: {
      label: 'mainName',
      value: 'mainEnName'
    },
    cascaderItem: ["ticketName"],
    rules: [{
      required: true,
      message: '请选择票种',
      trigger: 'blur'
    }],
    display: false,
  }, {
    label: '车票名称',
    prop: 'ticketName',
    search: true,
    type: 'select',
    dicFlag: false,
    props: {
      label: 'subName',
      value: 'subEnName'
    },
    dicUrl: '/support/swpmticketcardtypeparam/dictAll/{{key}}',
    rules: [{
      required: true,
      message: '请选择车票名称',
      trigger: 'blur'
    }],
    display: false,
  }, {
    label: '数据来源',
    prop: 'dataSource',
    dicUrl: '/admin/dict/type/invalid_ticket_data_source',
    display: false
  }, {
    label: '原卡号',
    prop: 'oldCardOrder',
    rules: [{
      required: true,
      message: '原卡号',
      trigger: 'blur'
    }],
    display: false,
  }, {
    label: '申请时间',
    prop: 'applyTime',
    type: 'datetime',
    search: true,
    searchRange: true,
    searchSpan: 12,
    format: 'yyyy-MM-dd',
    valueFormat: 'yyyy-MM-dd',
    rules: [{
      required: true,
      message: '请输入申请时间',
      trigger: 'blur'
    }],
    display: false,
  }, 
  // {
  //   label: '新卡号',
  //   prop: 'newCardOrder',
  //   // rules: [{
  //   //   required: true,
  //   //   message: '新卡号',
  //   //   trigger: 'blur'
  //   // }],
  //   display: false,
  // }, {
  //   label: '领用时间',
  //   prop: 'receiveTime',
  //   search: true,
  //   searchRange: true,
  //   searchSpan: 12,
  //   type: 'datetime',
  //   format: 'yyyy-MM-dd',
  //   valueFormat: 'yyyy-MM-dd',
  //   // rules: [{
  //   //   required: true,
  //   //   message: '请输入领用时间',
  //   //   trigger: 'blur'
  //   // }],
  //   display: false,
  // }, {
  //   label: '领用人',
  //   prop: 'receiver',
  //   search: true,
  //   type: 'select',
  //   params: {
  //     userCodeKey: 'receiverId'
  //   },
  //   component: 'user-select',
  //   rules: [{
  //     message: '请选择领用人信息',
  //     trigger: 'blur'
  //   }],
  //   display: false,
  // }, {
  //   label: '领用人工号',
  //   prop: 'receiverId',
  //   rules: [{
  //     message: '领用人工号',
  //     trigger: 'blur'
  //   }],
  //   display: false,
  // }, 
  {
    label: '发卡人',
    prop: 'cardIssuer',
    type: 'select',
    params: {
      userCodeKey: 'cardIssuerId'
    },
    component: 'user-select',
    rules: [{
      message: '请选择发卡人信息',
      trigger: 'blur'
    }],
    display: false,
  }, {
    width: 100,
    label: '发卡人工号',
    prop: 'cardIssuerId',
    rules: [{
      message: '发卡人工号',
      trigger: 'blur'
    }],
    display: false,
  }, {
    width: 120,
    label: '新发票卡金额',
    prop: 'ticketPrice',
    type: 'number',
    precision: 2,
    display: false,
  }, {
    width: 120,
    label: '是否人为损坏',
    prop: 'isDamage',
    search: true,
    type: 'select',
    dicUrl: '/admin/dict/type/ticket_damage',
    rules: [{
      message: '请选择是否人为损坏',
      trigger: 'blur'
    }],
    display: false,
  }, {
    width: 140,
    label: '新发票卡有效期',
    prop: 'activeTime',
    rules: [{
      message: '新发票卡有效期',
      trigger: 'blur'
    }],
    display: false,
  }, {
    width: 120,
    label: '新发票卡次数',
    prop: 'ticketTimes',
    type: 'number',
    rules: [{
      message: '新发票卡次数',
      trigger: 'blur'
    }],
    display: false,
  }, {
    width: 120,
    label: '票卡剩余次数',
    prop: 'remainTimes',
    type: 'number',
	precision: 2,
    rules: [{
      message: '票卡剩余次数',
      trigger: 'blur'
    }],
    display: false,
  }, {
    width: 120,
    label: '票卡剩余金额',
    type: 'number',
    prop: 'ticketPriceRemain',
    rules: [{
      message: '票卡剩余次数',
      trigger: 'blur'
    }],
    display: false,
  }, {
    width: 120,
    label: '票卡查询状态',
    prop: 'ticketSearchStatus',
    type: 'input',
    rules: [{
      message: '票卡查询状态',
      trigger: 'blur'
    }],
    display: false,
  }, {
    label: '审核状态',
    prop: 'checkStatus',
    search: true,
    type: 'select',
    dicUrl: '/admin/dict/type/audit_status',
    addDisplay: false,
    editDisplay: false,
    rules: [{
      message: '请选择审核状态',
      trigger: 'blur'
    }],
    display: false,
  }, {
    label: '备注',
    prop: 'remark',
    type: 'textarea',
    maxRows: 6,
    minRows: 4,
    span: 24,
    display: false,
  }, {
    label: '创建人ID',
    prop: 'creatorId',
    hide: true,
    display: false,
  }, {
    label: '创建人名称',
    prop: 'creatorName',
    hide: true,
    display: false,
  }, {
    label: '创建时间',
    prop: 'createtime',
    hide: true,
    display: false,
  }],
  group: [
    {
      label: '车站提交信息',
      column: [{
        label: '标识',
        prop: 'id',
        hide: true,
        display:false,
      }, {
        label: '线路名称',
        prop: 'stationLine',
        type: 'select',
        props: {
          label: 'name',
          value: 'code'
        },
        cascaderItem: ["stationCode"],
        dicUrl: "/support/swparamline/dict",
        rules: [{
          required: true,
          message: '请选择线路名称',
          trigger: 'blur'
        }],
        disabled: true,
      }, {
        label: '站点名称',
        prop: 'stationCode',
        type: 'select',
        dicFlag: false,
        props: {
          label: 'name',
          value: 'code'
        },
        dicUrl: "/support/swparamstation/dict/{{key}}",
        rules: [{
          required: true,
          message: '请选择站点名称',
          trigger: 'blur'
        }],
        disabled: true,
      }, {
        label: '票种',
        prop: 'ticketType',
        type: 'select',
        dicUrl: '/support/swpmticketcardtype/dict',
        props: {
          label: 'mainName',
          value: 'mainEnName'
        },
        cascaderItem: ["ticketName"],
        rules: [{
          required: true,
          message: '请选择票种',
          trigger: 'blur'
        }],
        disabled: true,
      }, {
        label: '车票名称',
        prop: 'ticketName',
        type: 'select',
        dicFlag: false,
        props: {
          label: 'subName',
          value: 'subEnName'
        },
        dicUrl: '/support/swpmticketcardtypeparam/dictAll/{{key}}',
        rules: [{
          required: true,
          message: '请选择票种',
          trigger: 'blur'
        }],
        disabled: true,
      }, {
        label: '原卡号',
        prop: 'oldCardOrder',
        rules: [{
          required: true,
          message: '原卡号',
          trigger: 'blur'
        }],
        disabled: true,
      }, {
        label: '预估次数',
        prop: 'estimatedNumber',
        type: 'number',
        rules: [{
          required: true,
          message: '预估次数',
          trigger: 'blur'
        }],
        disabled: true,
      }, 
      ]
    },
    {
      label: '线网信息补充',
      column: [{
        label: '申请时间',
        prop: 'applyTime',
        type: 'datetime',
        format: 'yyyy-MM-dd',
        valueFormat: 'yyyy-MM-dd',
        rules: [{
          required: true,
          message: '请输入申请时间',
          trigger: 'blur'
        }],
        //disabled: true,
      }, 
      // {
      //   label: '新卡号',
      //   prop: 'newCardOrder',
      //   // rules: [{
      //   //   required: true,
      //   //   message: '新卡号',
      //   //   trigger: 'blur'
      //   // }]
      // }, {
      //   label: '领用时间',
      //   prop: 'receiveTime',
      //   type: 'datetime',
      //   format: 'yyyy-MM-dd',
      //   valueFormat: 'yyyy-MM-dd',
      //   // rules: [{
      //   //   required: true,
      //   //   message: '请输入领用时间',
      //   //   trigger: 'blur'
      //   // }]
      // }, {
      //   label: '领用人',
      //   prop: 'receiver',
      //   type: 'select',
      //   params: {
      //     userCodeKey: 'receiverId'
      //   },
      //   component: 'user-select',
      //   rules: [{
      //     message: '请选择领用人信息',
      //     trigger: 'blur'
      //   }]
      // }, {
      //   label: '领用人工号',
      //   prop: 'receiverId',
      //   rules: [{
      //     message: '领用人工号',
      //     trigger: 'blur'
      //   }],
      //   disabled: true,
      // }, 
      {
        label: '发卡人',
        prop: 'cardIssuer',
        type: 'select',
        params: {
          userCodeKey: 'cardIssuerId'
        },
        component: 'user-select',
        rules: [{
          message: '请选择发卡人信息',
          trigger: 'blur'
        }]
      }, {
        width: 100,
        label: '发卡人工号',
        prop: 'cardIssuerId',
        rules: [{
          message: '发卡人工号',
          trigger: 'blur'
        }],
        disabled: true,
      }, 
      {
        width: 120,
        label: '新发票卡金额',
        prop: 'ticketPrice',
        type: 'number',
        precision: 2,
        labelWidth: 100,
        display: false,
      }, {
        width: 120,
        label: '是否人为损坏',
        prop: 'isDamage',
        type: 'select',
        dicUrl: '/admin/dict/type/ticket_damage',
        rules: [{
          message: '请选择是否人为损坏',
          trigger: 'blur'
        }],
        labelWidth: 100,
      }, {
        width: 140,
        label: '新发票卡有效期',
        prop: 'activeTime',
        type: 'input',
        rules: [{
          message: '新发票卡有效期',
          trigger: 'blur'
        }],
        labelWidth: 120,
      }, {
        width: 120,
        label: '新发票卡次数',
        prop: 'ticketTimes',
        type: 'number',
        // rules: [{
        //   message: '新发票卡次数',
        //   trigger: 'blur'
        // }],
        labelWidth: 100,
      },
      ]
    },
    {
      label: '清分回馈信息',
      column: [{
        label: '票卡剩余次数',
        prop: 'remainTimes',
        type: 'number',
        // rules: [{
        //   message: '票卡剩余次数',
        //   trigger: 'blur'
        // }],
        labelWidth: 120,
        //disabled: true,
      }, {
        label: '票卡剩余金额',
        prop: 'ticketPriceRemain',
        type: 'number',
		    precision: 2,
        // rules: [{
        //   message: '票卡剩余次数',
        //   trigger: 'blur'
        // }],
        labelWidth: 120,
        //disabled: true,
        display: false,
      }, {
        label: '票卡查询状态',
        prop: 'ticketSearchStatus',
        // rules: [{
        //   message: '票卡查询状态',
        //   trigger: 'blur'
        // }],
        labelWidth: 110,
        //disabled: true,
      }, {
        label: '备注',
        prop: 'remark',
        type: 'textarea',
        maxRows: 6,
        minRows: 4,
        span: 24,
        //disabled: true,
      }],
    }
  ]
};

export const tableOptionStationView = {
  border: true,
  index: true,
  indexLabel: '序号',
  stripe: true,
  menuAlign: 'center',
  align: 'center',
  dialogWidth: '70%',
  searchLabelWidth: 100,
  editBtn: false,
  column: [{
    label: '标识',
    prop: 'id',
    hide: true,
    display: false,
  }, {
    label: '线路名称',
    prop: 'stationLine',
    type: 'select',
    props: {
      label: 'name',
      value: 'code'
    },
    cascaderItem: ["stationCode"],
    dicUrl: "/support/swparamline/dict",
    rules: [{
      required: true,
      message: '请选择线路名称',
      trigger: 'blur'
    }],
    display: false,
  }, {
    label: '站点名称',
    prop: 'stationCode',
    type: 'select',
    dicFlag: false,
    props: {
      label: 'name',
      value: 'code'
    },
    dicUrl: "/support/swparamstation/dict/{{key}}",
    rules: [{
      required: true,
      message: '请选择站点名称',
      trigger: 'blur'
    }],
    display: false,
  }, {
    label: '票种',
    prop: 'ticketType',
    type: 'select',
    dicUrl: '/support/swpmticketcardtype/dict',
    search: true,
    props: {
      label: 'mainName',
      value: 'mainEnName'
    },
    cascaderItem: ["ticketName"],
    rules: [{
      required: true,
      message: '请选择票种',
      trigger: 'blur'
    }],
    display: false,
  }, {
    label: '车票名称',
    prop: 'ticketName',
    search: true,
    type: 'select',
    dicFlag: false,
    props: {
      label: 'subName',
      value: 'subEnName'
    },
    dicUrl: '/support/swpmticketcardtypeparam/dictAll/{{key}}',
    rules: [{
      required: true,
      message: '请选择车票名称',
      trigger: 'blur'
    }],
    display: false,
  }, {
    label: '数据来源',
    prop: 'dataSource',
    dicUrl: '/admin/dict/type/invalid_ticket_data_source',
    display: false
  }, {
    label: '原卡号',
    prop: 'oldCardOrder',
    rules: [{
      required: true,
      message: '原卡号',
      trigger: 'blur'
    }],
    display: false,
  }, {
    label: '申请时间',
    prop: 'applyTime',
    type: 'datetime',
    search: true,
    searchRange: true,
    searchSpan: 12,
    format: 'yyyy-MM-dd',
    valueFormat: 'yyyy-MM-dd',
    rules: [{
      required: true,
      message: '请输入申请时间',
      trigger: 'blur'
    }],
    display: false,
  }, 
  // {
  //   label: '新卡号',
  //   prop: 'newCardOrder',
  //   // rules: [{
  //   //   required: true,
  //   //   message: '新卡号',
  //   //   trigger: 'blur'
  //   // }],
  //   display: false,
  // }, {
  //   label: '领用时间',
  //   prop: 'receiveTime',
  //   search: true,
  //   searchRange: true,
  //   searchSpan: 12,
  //   type: 'datetime',
  //   format: 'yyyy-MM-dd',
  //   valueFormat: 'yyyy-MM-dd',
  //   // rules: [{
  //   //   required: true,
  //   //   message: '请输入领用时间',
  //   //   trigger: 'blur'
  //   // }],
  //   display: false,
  // }, {
  //   label: '领用人',
  //   prop: 'receiver',
  //   search: true,
  //   type: 'select',
  //   params: {
  //     userCodeKey: 'receiverId'
  //   },
  //   component: 'user-select',
  //   rules: [{
  //     message: '请选择领用人信息',
  //     trigger: 'blur'
  //   }],
  //   display: false,
  // }, {
  //   label: '领用人工号',
  //   prop: 'receiverId',
  //   rules: [{
  //     message: '领用人工号',
  //     trigger: 'blur'
  //   }],
  //   display: false,
  // }, 
  {
    label: '发卡人',
    prop: 'cardIssuer',
    type: 'select',
    params: {
      userCodeKey: 'cardIssuerId'
    },
    component: 'user-select',
    rules: [{
      message: '请选择发卡人信息',
      trigger: 'blur'
    }],
    display: false,
  }, {
    width: 100,
    label: '发卡人工号',
    prop: 'cardIssuerId',
    rules: [{
      message: '发卡人工号',
      trigger: 'blur'
    }],
    display: false,
  }, {
    width: 120,
    label: '新发票卡金额',
    prop: 'ticketPrice',
    type: 'number',
    precision: 2,
    display: false,
  }, {
    width: 120,
    label: '是否人为损坏',
    prop: 'isDamage',
    search: true,
    type: 'select',
    dicUrl: '/admin/dict/type/ticket_damage',
    rules: [{
      message: '请选择是否人为损坏',
      trigger: 'blur'
    }],
    display: false,
  }, {
    width: 140,
    label: '新发票卡有效期',
    prop: 'activeTime',
    rules: [{
      message: '新发票卡有效期',
      trigger: 'blur'
    }],
    display: false,
  }, {
    width: 120,
    label: '新发票卡次数',
    prop: 'ticketTimes',
    type: 'number',
    rules: [{
      message: '新发票卡次数',
      trigger: 'blur'
    }],
    display: false,
  }, {
    width: 120,
    label: '票卡剩余次数',
    prop: 'remainTimes',
    type: 'number',
	precision: 2,
    rules: [{
      message: '票卡剩余次数',
      trigger: 'blur'
    }],
    display: false,
  }, {
    width: 120,
    label: '票卡剩余金额',
    type: 'number',
    prop: 'ticketPriceRemain',
    rules: [{
      message: '票卡剩余次数',
      trigger: 'blur'
    }],
    display: false,
  }, {
    width: 120,
    label: '票卡查询状态',
    prop: 'ticketSearchStatus',
    type: 'input',
    rules: [{
      message: '票卡查询状态',
      trigger: 'blur'
    }],
    display: false,
  }, {
    label: '审核状态',
    prop: 'checkStatus',
    search: true,
    type: 'select',
    dicUrl: '/admin/dict/type/audit_status',
    addDisplay: false,
    editDisplay: false,
    rules: [{
      message: '请选择审核状态',
      trigger: 'blur'
    }],
    display: false,
  }, {
    label: '备注',
    prop: 'remark',
    type: 'textarea',
    maxRows: 6,
    minRows: 4,
    span: 24,
    display: false,
  }, {
    label: '创建人ID',
    prop: 'creatorId',
    hide: true,
    display: false,
  }, {
    label: '创建人名称',
    prop: 'creatorName',
    hide: true,
    display: false,
  }, {
    label: '创建时间',
    prop: 'createtime',
    hide: true,
    display: false,
  }],
  group: [
    {
      label: '车站提交信息',
      column: [{
        label: '标识',
        prop: 'id',
        hide: true,
        display:false,
      }, {
        label: '线路名称',
        prop: 'stationLine',
        type: 'select',
        props: {
          label: 'name',
          value: 'code'
        },
        cascaderItem: ["stationCode"],
        dicUrl: "/support/swparamline/dict",
        rules: [{
          required: true,
          message: '请选择线路名称',
          trigger: 'blur'
        }],
        disabled: true,
      }, {
        label: '站点名称',
        prop: 'stationCode',
        type: 'select',
        dicFlag: false,
        props: {
          label: 'name',
          value: 'code'
        },
        dicUrl: "/support/swparamstation/dict/{{key}}",
        rules: [{
          required: true,
          message: '请选择站点名称',
          trigger: 'blur'
        }],
        disabled: true,
      }, {
        label: '票种',
        prop: 'ticketType',
        type: 'select',
        dicUrl: '/support/swpmticketcardtype/dict',
        props: {
          label: 'mainName',
          value: 'mainEnName'
        },
        cascaderItem: ["ticketName"],
        rules: [{
          required: true,
          message: '请选择票种',
          trigger: 'blur'
        }],
        disabled: true,
      }, {
        label: '车票名称',
        prop: 'ticketName',
        type: 'select',
        dicFlag: false,
        props: {
          label: 'subName',
          value: 'subEnName'
        },
        dicUrl: '/support/swpmticketcardtypeparam/dictAll/{{key}}',
        rules: [{
          required: true,
          message: '请选择票种',
          trigger: 'blur'
        }],
        disabled: true,
      }, {
        label: '原卡号',
        prop: 'oldCardOrder',
        rules: [{
          required: true,
          message: '原卡号',
          trigger: 'blur'
        }],
        disabled: true,
      },{
        label: '预估次数',
        prop: 'estimatedNumber',
        type: 'number',
        rules: [{
          required: true,
          message: '预估次数',
          trigger: 'blur'
        }],
        disabled: true,
      }, 
      ]
    },
    {
      label: '线网信息补充',
      column: [{
        label: '申请时间',
        prop: 'applyTime',
        type: 'datetime',
        format: 'yyyy-MM-dd',
        valueFormat: 'yyyy-MM-dd',
        rules: [{
          required: true,
          message: '请输入申请时间',
          trigger: 'blur'
        }],
        //disabled: true,
      }, 
      // {
      //   label: '新卡号',
      //   prop: 'newCardOrder',
      //   // rules: [{
      //   //   required: true,
      //   //   message: '新卡号',
      //   //   trigger: 'blur'
      //   // }]
      // }, {
      //   label: '领用时间',
      //   prop: 'receiveTime',
      //   type: 'datetime',
      //   format: 'yyyy-MM-dd',
      //   valueFormat: 'yyyy-MM-dd',
      //   // rules: [{
      //   //   required: true,
      //   //   message: '请输入领用时间',
      //   //   trigger: 'blur'
      //   // }]
      // }, {
      //   label: '领用人',
      //   prop: 'receiver',
      //   type: 'select',
      //   params: {
      //     userCodeKey: 'receiverId'
      //   },
      //   component: 'user-select',
      //   rules: [{
      //     message: '请选择领用人信息',
      //     trigger: 'blur'
      //   }]
      // }, {
      //   label: '领用人工号',
      //   prop: 'receiverId',
      //   rules: [{
      //     message: '领用人工号',
      //     trigger: 'blur'
      //   }],
      //   disabled: true,
      // }, 
      {
        label: '发卡人',
        prop: 'cardIssuer',
        type: 'select',
        params: {
          userCodeKey: 'cardIssuerId'
        },
        component: 'user-select',
        rules: [{
          message: '请选择发卡人信息',
          trigger: 'blur'
        }]
      }, {
        width: 120,
        label: '发卡人工号',
        prop: 'cardIssuerId',
        rules: [{
          message: '发卡人工号',
          trigger: 'blur'
        }],
        disabled: true,
      }, {
        label: '新发票卡金额',
        prop: 'ticketPrice',
        type: 'number',
        precision: 2,
        labelWidth: 120,
        display: false,
      }, {
        label: '是否人为损坏',
        prop: 'isDamage',
        type: 'select',
        dicUrl: '/admin/dict/type/ticket_damage',
        rules: [{
          message: '请选择是否人为损坏',
          trigger: 'blur'
        }],
        labelWidth: 120,
      }, {
        label: '新发票卡有效期',
        prop: 'activeTime',
        type: 'input',
        rules: [{
          message: '新发票卡有效期',
          trigger: 'blur'
        }],
        labelWidth: 120,
      }, {
        label: '新发票卡次数',
        prop: 'ticketTimes',
        type: 'number',
        rules: [{
          message: '新发票卡次数',
          trigger: 'blur'
        }],
        labelWidth: 120,
      },
      ]
    },
    {
      label: '清分回馈信息',
      column: [{
        label: '票卡剩余次数',
        prop: 'remainTimes',
        type: 'number',
        rules: [{
          message: '票卡剩余次数',
          trigger: 'blur'
        }],
        labelWidth: 120,
        disabled: true,
      }, {
        label: '票卡剩余金额',
        prop: 'ticketPriceRemain',
        type: 'number',
		    precision: 2,
        rules: [{
          message: '票卡剩余次数',
          trigger: 'blur'
        }],
        labelWidth: 120,
        disabled: true,
        display: false,
      }, {
        label: '票卡查询状态',
        prop: 'ticketSearchStatus',
        rules: [{
          message: '票卡查询状态',
          trigger: 'blur'
        }],
        labelWidth: 120,
        disabled: true,
      }, {
        label: '备注',
        prop: 'remark',
        type: 'textarea',
        maxRows: 6,
        minRows: 4,
        span: 24,
        disabled: true,
      }],
    }
  ]
};

export const tableOptionAdd = {
  column: [{
    label: '标识',
    prop: 'id',
    hide: true,
    addDisplay: false,
    editDisplay: false
  }, {
    label: '线路名称',
    prop: 'stationLine',
    type: 'select',
    props: {
      label: 'name',
      value: 'code'
    },
    cascaderItem: ["stationCode"],
    dicUrl: "/support/swparamline/dict",
    rules: [{
      required: true,
      message: '请选择线路名称',
      trigger: 'blur'
    }]
  }, {
    label: '站点名称',
    prop: 'stationCode',
    type: 'select',
    dicFlag: false,
    props: {
      label: 'name',
      value: 'code'
    },
    dicUrl: "/support/swparamstation/dict/{{key}}",
    rules: [{
      required: true,
      message: '请选择站点名称',
      trigger: 'blur'
    }]
  }, {
    label: '票种',
    prop: 'ticketType',
    type: 'select',
    dicUrl: '/support/swpmticketcardtype/dict',
    props: {
      label: 'mainName',
      value: 'mainEnName'
    },
    cascaderItem: ["ticketName"],
    rules: [{
      required: true,
      message: '请选择票种',
      trigger: 'blur'
    }]
  }, {
    label: '车票名称',
    prop: 'ticketName',
    search: true,
    type: 'select',
    props: {
      label: 'subName',
      value: 'subEnName'
    },
    dicFlag: false,
    dicUrl: '/support/swpmticketcardtypeparam/dictAll/{{key}}',
    rules: [{
      required: true,
      message: '请选择票种',
      trigger: 'blur'
    }]
  }, {
    label: '数据来源',
    prop: 'dataSource',
    dicUrl: '/admin/dict/type/invalid_ticket_data_source',
    display: false
  }, {
    label: '原卡号',
    prop: 'oldCardOrder',
    rules: [{
      required: true,
      message: '原卡号',
      trigger: 'blur'
    }]
  }, {
    label: '申请时间',
    prop: 'applyTime',
    type: 'date',
    search: true,
    searchRange: true,
    searchSpan: 12,
    //addDisabled:true,
      format: 'yyyy-MM-dd',
      valueFormat: 'yyyy-MM-dd',
    rules: [{
      required: true,
      message: '请输入申请时间',
      trigger: 'blur'
    }]
  }, 
  // {
  //   label: '新卡号',
  //   prop: 'newCardOrder',
  //   // rules: [{
  //   //   required: true,
  //   //   message: '新卡号',
  //   //   trigger: 'blur'
  //   // }]
  // }, {
  //   label: '领用时间',
  //   prop: 'receiveTime',
  //   search: true,
  //   searchRange: true,
  //   searchSpan: 12,
  //   type: 'date',
  //     format: 'yyyy-MM-dd',
  //     valueFormat: 'yyyy-MM-dd',
  //   // rules: [{
  //   //   required: true,
  //   //   message: '请输入领用时间',
  //   //   trigger: 'blur'
  //   // }]
  // }, {
  //   label: '领用人',
  //   prop: 'receiver',
  //   search: true,
  //   type: 'select',
  //   params: {
  //     userCodeKey: 'receiverId'
  //   },
  //   component: 'user-select',
  //   rules: [{
  //     message: '请选择领用人信息',
  //     trigger: 'blur'
  //   }]
  // }, {
  //   label: '领用人工号',
  //   prop: 'receiverId',
  //   addDisabled:true,
  //   editDisabled:true,
  //   rules: [{
  //     message: '领用人工号',
  //     trigger: 'blur'
  //   }]
  // }, 
  {
    label: '发卡人',
    prop: 'cardIssuer',
    type: 'input',
    addDisabled:true,
    // params: {
    //   userCodeKey: 'cardIssuerId'
    // },
    // component: 'user-select',
    rules: [{
      message: '请选择发卡人信息',
      trigger: 'blur'
    }]
  }, {
    width: 100,
    label: '发卡人工号',
    prop: 'cardIssuerId',
    addDisabled:true,
    editDisabled:true,
    rules: [{
      message: '发卡人工号',
      trigger: 'blur'
    }]
  }, {
    label: '班次',
    prop: 'classNumber',
    type: 'select',
    dicUrl: '/admin/dict/type/stm_conductor_shift',
    rules: [{
      required: true,
      message: '请选择班次'
    }]
  },{
    label: '新发票卡金额',
    prop: 'ticketPrice',
    type: 'number',
    labelWidth:120,
    precision: 2,
    addDisplay: false,
    editDisplay: false
  }, {
    label: '是否人为损坏',
    prop: 'isDamage',
    labelWidth:120,
    search: true,
    type: 'select',
    dicUrl: '/admin/dict/type/ticket_damage',
    rules: [{
      message: '请选择是否人为损坏',
      trigger: 'blur'
    }]
  }, {
    label: '新发票卡有效期',
    prop: 'activeTime',
    labelWidth:140,
    rules: [{
      message: '新发票卡有效期',
      trigger: 'blur'
    }]
  }, {
    label: '新发票卡次数',
    prop: 'ticketTimes',
    labelWidth:120,
    rules: [{
      message: '新发票卡次数',
      trigger: 'blur'
    }]
  },
  ]
}

export const tableOptionQingFenEdit = {
  editBtn:false,
  delBtn:false,
  addBtn:false,
  column: [{
    label: '标识',
    prop: 'id',
    hide: true,
    addDisplay: false,
    editDisplay: false
  }, {
    label: '线路名称',
    prop: 'stationLine',
    type: 'select',
    props: {
      label: 'name',
      value: 'code'
    },
    cascaderItem: ["stationCode"],
    dicUrl: "/support/swparamline/dict",
    rules: [{
      required: true,
      message: '请选择线路名称',
      trigger: 'blur'
    }],
    disabled:true,
  }, {
    label: '站点名称',
    prop: 'stationCode',
    type: 'select',
    dicFlag: false,
    props: {
      label: 'name',
      value: 'code'
    },
    dicUrl: "/support/swparamstation/dict/{{key}}",
    rules: [{
      required: true,
      message: '请选择站点名称',
      trigger: 'blur'
    }],
    disabled:true,
  },  {
    label: '原卡号',
    prop: 'oldCardOrder',
    rules: [{
      required: true,
      message: '原卡号',
      trigger: 'blur'
    }],
    disabled:true,
  }, {
    width: 120,
    label: '是否人为损坏',
    prop: 'isDamage',
    type: 'select',
    dicUrl: '/admin/dict/type/ticket_damage',
    rules: [{
      message: '请选择是否人为损坏',
      trigger: 'blur'
    }],
    disabled:true,
  },  {
    label: '申请时间',
    prop: 'applyTime',
    type: 'datetime',
    format: 'yyyy-MM-dd',
    valueFormat: 'yyyy-MM-dd',
    rules: [{
      required: true,
      message: '请输入申请时间',
      trigger: 'blur'
    }],
    disabled:true,
  },{
    width: 120,
    label: '票卡查询状态',
    prop: 'ticketSearchStatus',
    type: 'input',
    rules: [{
      message: '票卡查询状态',
      trigger: 'blur'
    }],
  },{
    width: 120,
    label: '票卡剩余次数',
    prop: 'remainTimes',
    type: 'number',
    // rules: [{
    //   message: '票卡剩余次数',
    //   trigger: 'blur'
    // }],
  }, {
    width: 120,
    label: '票卡剩余金额',
    type: 'number',
    prop: 'ticketPriceRemain',
	  precision: 2,
    // rules: [{
    //   message: '票卡剩余次数',
    //   trigger: 'blur'
    // }],
    display: false,
  },
  ]
}

export const tableOptionQingFenView = {
  detail:true,
  editBtn:false,
  delBtn:false,
  addBtn:false,
  column: [{
    label: '标识',
    prop: 'id',
    hide: true,
    addDisplay: false,
    editDisplay: false
  }, {
    label: '线路名称',
    prop: 'stationLine',
    type: 'select',
    props: {
      label: 'name',
      value: 'code'
    },
    cascaderItem: ["stationCode"],
    dicUrl: "/support/swparamline/dict",
    rules: [{
      required: true,
      message: '请选择线路名称',
      trigger: 'blur'
    }]
  }, {
    label: '站点名称',
    prop: 'stationCode',
    type: 'select',
    dicFlag: false,
    props: {
      label: 'name',
      value: 'code'
    },
    dicUrl: "/support/swparamstation/dict/{{key}}",
    rules: [{
      required: true,
      message: '请选择站点名称',
      trigger: 'blur'
    }]
  },  {
    label: '原卡号',
    prop: 'oldCardOrder',
    rules: [{
      required: true,
      message: '原卡号',
      trigger: 'blur'
    }]
  }, {
    width: 120,
    label: '是否人为损坏',
    prop: 'isDamage',
    type: 'select',
    dicUrl: '/admin/dict/type/ticket_damage',
    rules: [{
      message: '请选择是否人为损坏',
      trigger: 'blur'
    }],
  },  {
    label: '申请时间',
    prop: 'applyTime',
    type: 'datetime',
    format: 'yyyy-MM-dd',
    valueFormat: 'yyyy-MM-dd',
    rules: [{
      required: true,
      message: '请输入申请时间',
      trigger: 'blur'
    }]
  },{
    width: 120,
    label: '票卡查询状态',
    prop: 'ticketSearchStatus',
    type: 'input',
    rules: [{
      message: '票卡查询状态',
      trigger: 'blur'
    }],
  },{
    width: 120,
    label: '票卡剩余次数',
    prop: 'remainTimes',
    type: 'number',
    rules: [{
      message: '票卡剩余次数',
      trigger: 'blur'
    }],
  }, {
    width: 120,
    label: '票卡剩余金额',
    type: 'number',
    prop: 'ticketPriceRemain',
	  precision: 2,
    rules: [{
      message: '票卡剩余金额',
      trigger: 'blur'
    }],
    display: false,
  },
  ]
}


export const tableOptionQingFen = {
  border: true,
  index: true,
  indexLabel: '序号',
  stripe: true,
  menuAlign: 'center',
  align: 'center',
  dialogWidth: '70%',
  editBtn: false,
  selection: true,
  delBtn:false,
  addBtn:false,
  column: [{
    label: '标识',
    prop: 'id',
    hide: true,
    display: false,
  }, {
    label: '线路名称',
    prop: 'stationLine',
    type: 'select',
    search:true,
    props: {
      label: 'name',
      value: 'code'
    },
    cascaderItem: ["stationCode"],
    dicUrl: "/support/swparamline/dict",
    rules: [{
      required: true,
      message: '请选择线路名称',
      trigger: 'blur'
    }],
    display: false,
  }, {
    label: '站点名称',
    prop: 'stationCode',
    type: 'select',
    search:true,
    dicFlag: false,
    props: {
      label: 'name',
      value: 'code'
    },
    dicUrl: "/support/swparamstation/dict/{{key}}",
    rules: [{
      required: true,
      message: '请选择站点名称',
      trigger: 'blur'
    }],
    display: false,
  }, {
    label: '票种',
    prop: 'ticketType',
    type: 'select',
    dicUrl: '/support/swpmticketcardtype/dict',
    props: {
      label: 'mainName',
      value: 'mainEnName'
    },
    cascaderItem: ["ticketName"],
    rules: [{
      required: true,
      message: '请选择票种',
      trigger: 'blur'
    }],
    display: false,
  }, {
    label: '车票名称',
    prop: 'ticketName',
    type: 'select',
    dicFlag: false,
    props: {
      label: 'subName',
      value: 'subEnName'
    },
    dicUrl: '/support/swpmticketcardtypeparam/dictAll/{{key}}',
    rules: [{
      required: true,
      message: '请选择车票名称',
      trigger: 'blur'
    }],
    display: false,
  }, {
    label: '数据来源',
    prop: 'dataSource',
    dicUrl: '/admin/dict/type/invalid_ticket_data_source',
    display: false
  }, {
    label: '原卡号',
    prop: 'oldCardOrder',
    rules: [{
      required: true,
      message: '原卡号',
      trigger: 'blur'
    }],
    display: false,
  }, {
    label: '申请时间',
    prop: 'applyTime',
    type: 'datetime',
    search: true,
    searchRange: true,
    searchSpan: 12,
    format: 'yyyy-MM-dd',
    valueFormat: 'yyyy-MM-dd',
    rules: [{
      required: true,
      message: '请输入申请时间',
      trigger: 'blur'
    }],
    display: false,
  }, {
    label: '新卡号',
    prop: 'newCardOrder',
    // rules: [{
    //   required: true,
    //   message: '新卡号',
    //   trigger: 'blur'
    // }],
    display: false,
  }, {
    label: '领用时间',
    prop: 'receiveTime',
    type: 'datetime',
    format: 'yyyy-MM-dd',
    valueFormat: 'yyyy-MM-dd',
    // rules: [{
    //   required: true,
    //   message: '请输入领用时间',
    //   trigger: 'blur'
    // }],
    display: false,
  }, {
    label: '领用人',
    prop: 'receiver',
    type: 'select',
    params: {
      userCodeKey: 'receiverId'
    },
    component: 'user-select',
    rules: [{
      message: '请选择领用人信息',
      trigger: 'blur'
    }],
    display: false,
  }, {
    width: 100,
    label: '领用人工号',
    prop: 'receiverId',
    rules: [{
      message: '领用人工号',
      trigger: 'blur'
    }],
    display: false,
  }, {
    label: '发卡人',
    prop: 'cardIssuer',
    type: 'select',
    params: {
      userCodeKey: 'cardIssuerId'
    },
    component: 'user-select',
    rules: [{
      message: '请选择发卡人信息',
      trigger: 'blur'
    }],
    display: false,
  }, {
    width: 100,
    label: '发卡人工号',
    prop: 'cardIssuerId',
    rules: [{
      message: '发卡人工号',
      trigger: 'blur'
    }],
    display: false,
  }, {
    width: 120,
    label: '新发票卡金额',
    prop: 'ticketPrice',
    type: 'number',
    precision: 2,
    display: false,
  }, {
    label: '是否人为损坏',
    prop: 'isDamage',
    searchLabelWidth: 120,
    type: 'select',
    dicUrl: '/admin/dict/type/ticket_damage',
    rules: [{
      message: '请选择是否人为损坏',
      trigger: 'blur'
    }],
    display: false,
  }, {
    width: 140,
    label: '新发票卡有效期',
    prop: 'activeTime',
    rules: [{
      message: '新发票卡有效期',
      trigger: 'blur'
    }],
    display: false,
  }, {
    width: 120,
    label: '新发票卡次数',
    prop: 'ticketTimes',
    type: 'number',
    rules: [{
      message: '新发票卡次数',
      trigger: 'blur'
    }],
    display: false,
  }, {
    width: 120,
    label: '票卡剩余次数',
    prop: 'remainTimes',
    type: 'number',
    rules: [{
      message: '票卡剩余次数',
      trigger: 'blur'
    }],
    display: false,
  }, {
    width: 120,
    label: '票卡剩余金额',
    type: 'number',
    prop: 'ticketPriceRemain',
	  precision: 2,
    rules: [{
      message: '票卡剩余金额',
      trigger: 'blur'
    }],
    display: false,
  }, {
    width: 120,
    label: '票卡查询状态',
    prop: 'ticketSearchStatus',
    type: 'input',
    rules: [{
      message: '票卡查询状态',
      trigger: 'blur'
    }],
    display: false,
  }, {
    label: '下发状态',
    prop: 'sendStatus',
    search: true,
    type: 'select',
    dicUrl: '/admin/dict/type/sw_st_invalidticket_status_qf',
    addDisplay: false,
    editDisplay: false,
  }, {
    label: '备注',
    prop: 'remark',
    type: 'textarea',
    maxRows: 6,
    minRows: 4,
    span: 24,
    display: false,
  }, {
    label: '创建人ID',
    prop: 'creatorId',
    hide: true,
    display: false,
  }, {
    width: 100,
    label: '创建人名称',
    prop: 'creatorName',
    hide: true,
    display: false,
  }, {
    label: '创建时间',
    prop: 'createtime',
    hide: true,
    display: false,
  }],
};
